package spider.web.regex;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author: zhangzeli
 * @date 17:40 2018/5/5
 * <P></P>
 */
public class Demo01 {
    public static void main(String[] args) {
        //asdasasdasd123123ikk2131m,ksadnasnkdmn21312312j;;da1231knkn323nn21312
        Pattern p = Pattern.compile("\\w+");
        Matcher m = p.matcher("asdasd&&asda");
        boolean matches = m.matches();
        System.out.println(matches);
//        boolean b = m.find();
//        String group = m.group();
//        System.out.println(group);


    }
}
